package de.riceman.simpleGo.view.views.visualizationView;

/**
 * @author reismade
 *
 * @version $Revision$
 */
public class Node {
	private Vector3D position;
	private double mass;
	private int id;


	public Node(int id, double mass, Vector3D position) {

		this.id = id;
		this.mass = mass;
		this.position = position;
	}

	public Node(int id) {

		this.id = id;
		position = new Vector3D();
	}
	
	public int getId() {
		
		return id;
	}

	public Vector3D getPosition() {
		
		return position;
	}

	
	public void setPosition(Vector3D position) {
	
		this.position = position;
	}
	
	public double getMass() {
	
		return mass;
	}
	
	public void setMass(double mass) {
	
		this.mass = mass;
	}
	
	public String toString() {
		return Integer.toString(id) + ": " + "x=" + Double.toString(position.getX()) + " y=" + Double.toString(position.getY());
	}
}
